package com.precisosoft.mathematize.client;

import org.gwtmultipage.client.UrlPatternEntryPoint;

import com.allen_sauer.gwt.log.client.Log;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 * 
 */
//@UrlPatternEntryPoint(value = "Home.html(\\\\?locale=(en|de))?((&|\\\\?)gwt.codesvr=127.0.0.1:9997)?")

@UrlPatternEntryPoint(value = "Home.html" + "(\\\\?gwt.codesvr=127.0.0.1:9997)?|")
public class Mathematize extends MultiPageEntryPoint {

  protected void revealCurrentPlace(String page) {

    if (page.equals(NameTokens.mainPage)) {
      getMathematizeGinjector().getPlaceManager().revealCurrentPlace();
    } else {
      Log.debug("Page name token: " + page);
    }

    /*

    } else if (page.equals(NameTokens.accountPage)) {

      String activity = Window.Location.getParameter(AccountsRecord.ACTIVITY);
      String accountId= Window.Location.getParameter(AccountsRecord.ACCOUNT_ID);

      placeRequest = new PlaceRequest(NameTokens.accountPage);
      placeRequest = placeRequest.with(AccountsRecord.ACTIVITY, activity).with(AccountsRecord.ACCOUNT_ID, accountId);
      ginjector.getPlaceManager().revealPlace(placeRequest);
    }

    */
  }
  
}

